package redis;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.tscnd.core.redis.RedisClientTemplate;

@ContextConfiguration(locations = {"classpath*:cfg/spring/**/spring-*.xml"})
public class redisTest1 extends AbstractJUnit4SpringContextTests{
	
	@Autowired
	private RedisClientTemplate redisClientTemplate;
	
	@Test
	public void set(){
		redisClientTemplate.set("mykey1", "123456");
	}
	
	@Test
	public void get(){
		String s=redisClientTemplate.get("mykey1");
		System.out.println(s);
	}
}
